﻿function Grade_display(frm)
{
    if(frm=="0")
    {
        for (var i = 1; i < 16; i++) {
            var name = "Check_Geade" + i;
            document.getElementById(name).disabled = true;
        }

        
    }
    if(frm=="1")
    {
        for (var i = 1; i < 16; i++) {
            var name = "Check_Geade" + i;
            document.getElementById(name).disabled = false;
        }
    }
}

function ServiceType(frm)
{
    if(frm=="0")
    {
        document.getElementById("DivServiceAdress").style.display = "block";
        document.getElementById("DivServiceContent").style.display = "none";
    }
    else
    {
        document.getElementById("DivServiceAdress").style.display = "none";
        document.getElementById("DivServiceContent").style.display = "block";
    }
}

function RecommendSwitch()
{
    var recommend = document.getElementById("Recommend");
    if (recommend.checked)
        document.getElementById("Recommend_Div").style.display = "block";
    else
        document.getElementById("Recommend_Div").style.display = "none";
}